package com.tbit.manager.api;

import com.tbit.manager.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 用量提醒相关API
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2024-10-22
 */
@FeignClient(name = ApiConstants.NAME)
public interface UsageApi {

    String PREFIX = ApiConstants.PREFIX + "/usageRemind";

    /**
     * 获取用量提醒
     * @param brandId 品牌id
     * @return Map<String, Object>
     */
    @PostMapping(value = PREFIX, consumes = "application/json")
    Map<String, Object> getMessage(@RequestBody Integer brandId);
}
